<html>
<head>
<title>Dojo Testing Script</title>
<script type="text/javascript" src="js/dojo/dojo.js"></script>
<script type="text/javascript">
      dojo.require("dojo.event.*");

		function venueDetails(result){
			//alert('inside');
			//document.domain = "upcoming.org";
			window.parent.venueDetails(result);
		}

	//http://upcoming.org/services/rest/?api_key=6acd31dc0a&method=event.search&search_text=bangalore&output=json
      function fetchData()
      {
    	 //document.domain = "upcoming.org";
	    //alert("in hello pressed");
	      var path = 'services/rest/?api_key=6acd31dc0a&method=venue.getInfo&venue_id=' + window.parent.venueId;
	      //alert(path);
        dojo.io.bind({url: "http://anounce.275mb.com/hello.php",
			content:{yws_path:path},
			load:function(type,data,event){venueDetails(data);},
			error:function(type,data,event){alert('error');}
			});

      }
      dojo.addOnLoad(fetchData);
    </script>
</head>
</html>